package com.cloudlead.commonData.query;

import static com.mysema.query.types.PathMetadataFactory.*;
import com.cloudlead.commonData.entity.EBaseCompany;


import com.mysema.query.types.path.*;

import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;

import com.mysema.query.sql.ColumnMetadata;
import java.sql.Types;

import com.mysema.query.sql.*;

import com.cloudlead.common.lang.annotation.Label;


/**
 * QBaseCompany is a Querydsl query type for EBaseCompany
 */
@Label("企业注册表查询")
@Generated("com.cloudlead.utils.persistence.codegen.serializer.SimpleMetaDataSerializer")
public class QBaseCompany extends RelationalPathBase<EBaseCompany> {

    private static final long serialVersionUID = -1012568029;

    public static final QBaseCompany baseCompany = new QBaseCompany("base_company");

    public class PrimaryKeys {

        public final PrimaryKey<EBaseCompany> primary = createPrimaryKey(id);

    }

    public class ForeignKeys {

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseShipRoutePrice> _shipOwnerCompanyFk = createInvForeignKey(id, "shipOwnerCompany");

        public final ForeignKey<com.cloudlead.commonData.entity.ETbPlacePrice> _tb_placePriceBaseCompany1Fk = createInvForeignKey(id, "base_company_id");

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseFleet> _baseFleetBaseCompany1Fk = createInvForeignKey(id, "base_company_id");

        public final ForeignKey<com.cloudlead.commonData.entity.ETbBookingSpaceOrder> _forwardcompanyFk = createInvForeignKey(id, "forwardCompanyId");

        public final ForeignKey<com.cloudlead.commonData.entity.ETbFleetOrder> _fleetCompanyFk = createInvForeignKey(id, "fleetCompanyId");

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseVoyage> _baseVoyageBaseCompany1Fk = createInvForeignKey(id, "base_company_id");

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseGps> _fleetCompany = createInvForeignKey(id, "fleet_id");

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseCar> _baseCarBaseCompany1Fk = createInvForeignKey(id, "base_company_id");

        public final ForeignKey<com.cloudlead.commonData.entity.ETbCustomerOrder> _tbCustomerOrderBaseCompany1Fk = createInvForeignKey(id, "base_company_id");

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseCompanyUser> _baseCompanyUserBaseCompanyFk = createInvForeignKey(id, "base_company_id");

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseOilCard> _baseOilCardBaseCompany1Fk = createInvForeignKey(id, "base_company_id");

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseDriver> _baseCompanyFk = createInvForeignKey(id, "base_company_id");

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseCompanyOffice> _companyFk = createInvForeignKey(id, "base_company_id");

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseShipRoutePrice> _baseShipRoutePriceBaseCompany1Fk = createInvForeignKey(id, "base_company_id");

        public final ForeignKey<com.cloudlead.commonData.entity.ETbCustomerOrder> _desShipOwnerFk = createInvForeignKey(id, "dest_company_id");

        public final ForeignKey<com.cloudlead.commonData.entity.ETbBankAccount> _tbBankAccountBaseCompany1Fk = createInvForeignKey(id, "base_company_id");

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseShip> _baseShipBaseCompany1Fk = createInvForeignKey(id, "base_company_id");

    }

    public final StringPath accountName = createString("accountName");

    public final StringPath accountNumber = createString("accountNumber");

    public final StringPath bank = createString("bank");

    public final StringPath businessLicense = createString("businessLicense");

    public final NumberPath<Integer> carsCount = createNumber("carsCount", Integer.class);

    public final StringPath comments = createString("comments");

    public final StringPath companyAddress = createString("companyAddress");

    public final StringPath companyContact = createString("companyContact");

    public final StringPath companyFax = createString("companyFax");

    public final StringPath companyLevel = createString("companyLevel");

    public final StringPath companyName = createString("companyName");

    public final StringPath companyPhone1 = createString("companyPhone1");

    public final StringPath companyPhone2 = createString("companyPhone2");

    public final StringPath companyShortName = createString("companyShortName");

    public final StringPath companyType = createString("companyType");

    public final StringPath dangerous = createString("dangerous");

    public final StringPath flag = createString("flag");

    public final StringPath fleetArea = createString("fleetArea");

    public final StringPath id = createString("id");

    public final StringPath identity = createString("identity");

    public final StringPath invoiceTitle = createString("invoiceTitle");

    public final StringPath legalPerson = createString("legalPerson");

    public final StringPath logoImage = createString("logoImage");

    public final StringPath organizationCode = createString("organizationCode");

    public final StringPath organizationFilePath = createString("organizationFilePath");

    public final StringPath registrationNumber = createString("registrationNumber");

    public final NumberPath<Integer> shipsCount = createNumber("shipsCount", Integer.class);

    public final StringPath status = createString("status");

    public final StringPath taxpayerIdentificationNumber = createString("taxpayerIdentificationNumber");

    public final StringPath taxRegistrationFilePath = createString("taxRegistrationFilePath");

    public final StringPath vatTaxpayer = createString("vatTaxpayer");

    public final PrimaryKeys pk = new PrimaryKeys();

    public final ForeignKeys fk = new ForeignKeys();

    public QBaseCompany(String variable) {
        super(EBaseCompany.class, forVariable(variable), "null", "base_company");
        addMetadata();
    }

    public QBaseCompany(String variable, String schema, String table) {
        super(EBaseCompany.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QBaseCompany(Path<? extends EBaseCompany> path) {
        super(path.getType(), path.getMetadata(), "null", "base_company");
        addMetadata();
    }

    public QBaseCompany(PathMetadata<?> metadata) {
        super(EBaseCompany.class, metadata, "null", "base_company");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(accountName, ColumnMetadata.named("accountName").withIndex(21).ofType(Types.VARCHAR).withSize(45));
        addMetadata(accountNumber, ColumnMetadata.named("accountNumber").withIndex(23).ofType(Types.VARCHAR).withSize(45));
        addMetadata(bank, ColumnMetadata.named("bank").withIndex(22).ofType(Types.VARCHAR).withSize(45));
        addMetadata(businessLicense, ColumnMetadata.named("businessLicense").withIndex(12).ofType(Types.VARCHAR).withSize(45));
        addMetadata(carsCount, ColumnMetadata.named("carsCount").withIndex(25).ofType(Types.INTEGER).withSize(10));
        addMetadata(comments, ColumnMetadata.named("comments").withIndex(29).ofType(Types.VARCHAR).withSize(45));
        addMetadata(companyAddress, ColumnMetadata.named("companyAddress").withIndex(7).ofType(Types.VARCHAR).withSize(45));
        addMetadata(companyContact, ColumnMetadata.named("companyContact").withIndex(8).ofType(Types.VARCHAR).withSize(45));
        addMetadata(companyFax, ColumnMetadata.named("companyFax").withIndex(11).ofType(Types.VARCHAR).withSize(45));
        addMetadata(companyLevel, ColumnMetadata.named("companyLevel").withIndex(6).ofType(Types.VARCHAR).withSize(45));
        addMetadata(companyName, ColumnMetadata.named("companyName").withIndex(3).ofType(Types.VARCHAR).withSize(45));
        addMetadata(companyPhone1, ColumnMetadata.named("companyPhone1").withIndex(9).ofType(Types.VARCHAR).withSize(45));
        addMetadata(companyPhone2, ColumnMetadata.named("companyPhone2").withIndex(10).ofType(Types.VARCHAR).withSize(45));
        addMetadata(companyShortName, ColumnMetadata.named("companyShortName").withIndex(4).ofType(Types.VARCHAR).withSize(45));
        addMetadata(companyType, ColumnMetadata.named("companyType").withIndex(5).ofType(Types.VARCHAR).withSize(45));
        addMetadata(dangerous, ColumnMetadata.named("dangerous").withIndex(26).ofType(Types.VARCHAR).withSize(45));
        addMetadata(flag, ColumnMetadata.named("flag").withIndex(30).ofType(Types.VARCHAR).withSize(45));
        addMetadata(fleetArea, ColumnMetadata.named("fleetArea").withIndex(31).ofType(Types.VARCHAR).withSize(100));
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(identity, ColumnMetadata.named("identity").withIndex(2).ofType(Types.VARCHAR).withSize(45));
        addMetadata(invoiceTitle, ColumnMetadata.named("invoiceTitle").withIndex(20).ofType(Types.VARCHAR).withSize(45));
        addMetadata(legalPerson, ColumnMetadata.named("legalPerson").withIndex(19).ofType(Types.VARCHAR).withSize(45));
        addMetadata(logoImage, ColumnMetadata.named("logoImage").withIndex(27).ofType(Types.VARCHAR).withSize(45));
        addMetadata(organizationCode, ColumnMetadata.named("organizationCode").withIndex(14).ofType(Types.VARCHAR).withSize(45));
        addMetadata(organizationFilePath, ColumnMetadata.named("organizationFilePath").withIndex(15).ofType(Types.VARCHAR).withSize(45));
        addMetadata(registrationNumber, ColumnMetadata.named("registrationNumber").withIndex(13).ofType(Types.VARCHAR).withSize(45));
        addMetadata(shipsCount, ColumnMetadata.named("shipsCount").withIndex(24).ofType(Types.INTEGER).withSize(10));
        addMetadata(status, ColumnMetadata.named("status").withIndex(28).ofType(Types.VARCHAR).withSize(45));
        addMetadata(taxpayerIdentificationNumber, ColumnMetadata.named("taxpayerIdentificationNumber").withIndex(16).ofType(Types.VARCHAR).withSize(45));
        addMetadata(taxRegistrationFilePath, ColumnMetadata.named("taxRegistrationFilePath").withIndex(17).ofType(Types.VARCHAR).withSize(45));
        addMetadata(vatTaxpayer, ColumnMetadata.named("vatTaxpayer").withIndex(18).ofType(Types.VARCHAR).withSize(45));
    }

}

